import request from '@/utils/request.js'
/**
 *
 * @param {首页设置新增和修改} params
 */
export function webHome (params) {
  return request({
    url: '/website/webHome/webHomeAddOrUpdate',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

/**
 *
 * @param {首页列表} params
 */
export function webHomeList (params) {
  return request({
    url: '/website/webHome/webHomeList',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 *
 * @param {首页设置删除} params
 */
export function webHomeDel (params) {
  return request({
    url: '/website/webHome/webHomeDel',
    method: 'post',
    params
  })
}
/**
 *
 * @param {首页设置详情查看} params
 */
export function webHomeDetails (params) {
  return request({
    url: '/website/webHome/webHomeDetails',
    method: 'post',
    params
  })
}
